﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using FarseerPhysics;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Dynamics.Contacts;
using FarseerPhysics.Collision;
using FarseerPhysics.Factories;
using EpicBall.ScreenSystem;

namespace EpicBall.Levels.Classes
{
    //Objects of this type kill you when touched
    public class Death : LevelObject
    {
        public Death(PhysicsGameScreen screen, int width, int height) : base(screen, width, height) { }
        public Death(PhysicsGameScreen screen, Texture2D texture) : base(screen, texture) { }
        public bool CollectableCollision(Fixture f1, Fixture f2, Contact contact)
        {
            _screen.isDead = true;
            return true;
        }
    }
}
